//
//  UIButton+Extention.h
//
//  Created by seed on 2016/11/26.
//  Copyright © 2016年 seed. All rights reserved.
//



#import <UIKit/UIKit.h>
typedef void(^ActionBlock)(UIButton * button);
@interface UIButton (Extention)


+(instancetype)makeButton:(void(^)(UIButton * button))block;


@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setFrame)(CGRect);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^addTarget)(id, SEL, UIControlEvents);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setTitle)(NSString *, UIControlState);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setTitleColor)(UIColor *, UIControlState);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setTitleFont)(UIFont *);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setTitleEdgs)(UIEdgeInsets);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setImageEdgs)(UIEdgeInsets);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setBackgroundImage)(UIImage *, UIControlState);

@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setImage)(UIImage *, UIControlState);


@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIButton *(^setActionBlock)(ActionBlock, UIControlEvents);

@end
